﻿<UserControl x:Class="ETRobocon.RaceTraking.GameManagement.CheckMarkMgmtControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mylib="clr-namespace:ETRobocon.RaceTraking.GameManagement"
             mc:Ignorable="d" 
             d:DesignHeight="60" d:DesignWidth="200">
    <UserControl.Resources>
        <mylib:ClearMarkStatus x:Key="MyClearMarkStatus"/>
    </UserControl.Resources>
    <Grid>
        <Grid.DataContext>
            <Binding Source="{StaticResource MyClearMarkStatus}"/>
        </Grid.DataContext>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="20"/>
            <ColumnDefinition Width="130"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <TextBlock Name="tbOrder" Text="{Binding Path=Order}" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,5,0"/>
        <CheckBox Name="cbClearMark" IsChecked="{Binding Path=ClearedStatus, Mode=TwoWay}" Content="ClearMark" FontSize="12" Grid.Column="1" VerticalAlignment="Center" Checked="cbClearMark_Checked" Unchecked="cbClearMark_Unchecked" Margin="0,16,0,18" />
        <TextBlock Name="tbPoint" Text="{Binding Path=Point}" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,5,0"/>
    </Grid>
</UserControl>
